#ifndef LIGHT_H
#define LIGHT_H

#include <QGLWidget>
#include "point.h"
#include "lightoptionswidget.h"

class LightOptionsWidget;

class Light
{
private:
  QWidget *main_;
  LightOptionsWidget *options_;
  bool spot_;
public:
  bool active, changed;
  int x, z;
  GLfloat color[4];
  GLfloat ambient[4];
  GLfloat position[4];
  GLfloat direction[4];
  float cutoff;
  float exponent;

  Light(bool spot);
  ~Light();
  void Switch();
  void GenerateLightBox(Point p[]);
  void ShowOptions();
  void HideOptions();
};

#endif // LIGHT_H
